<template>
    <el-tree :data="treeData.treeList" :props="{
                  value: 'id', // ID字段名
                  label: 'name', // 显示名称
                  children: 'children', // 子级字段名
                }" @node-click="handleNodeClick" />
</template>

<script setup lang="ts">
import { reactive, ref } from 'vue';
import { anitTreeStore } from '@/store/modules/anitTree'
const treeData = anitTreeStore()
if (treeData.treeList.length < 1) {
  treeData.getTreeList()
}
function handleNodeClick(e){
    console.log(e)
}

</script>

<style scoped>

</style>
